import http from "@/libs/http";
class ParamSetupServer {
  async getAll() {
    return await http.get("/sys_parameter/index", {});
  }

  async getOne(key) {
    return await http.get("/sys_parameter/key", { key });
  }

  async add(row) {
    return await http.post("/sys_parameter/add", row);
  }

  async edit(row) {
    return await http.post("/sys_parameter/edit", row);
  }

  async setSysConfig(row) {
    return await http.post("/sys_parameter/setSysConfig", row);
  }

  async del(row) {
    return await http.post("/sys_parameter/del", row);
  }
}

const paramSetupServer = new ParamSetupServer();
export default paramSetupServer;
